import { createRouter, createWebHistory } from 'vue-router';
import LoginView from '../views/LoginView.vue';
import ChatView from '../views/ChatView.vue';
import HistoryView from '../views/HistoryView.vue';

const routes = [
  { path: '/login', component: LoginView },
  { path: '/chat', component: ChatView },
  { path: '/history', component: HistoryView },
  { path: '/:pathMatch(.*)*', redirect: '/login' }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router; 